package com.zyd.blog.homeart.service.impl;

import com.zyd.blog.homeart.service.IDictionariesService;
import com.zyd.blog.persistence.beans.Classification;
import com.zyd.blog.persistence.beans.Dictionaries;
import com.zyd.blog.persistence.mapper.DictionariesMapper;
import com.zyd.blog.util.ServiceException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.text.ParseException;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author fuxinbao
 * @since 2020-02-10
 */
@Service
public class DictionariesServiceImpl implements IDictionariesService {
@Autowired
private DictionariesMapper dictionariesMapper;
    @Override
    public List<Dictionaries> kind(String state) throws Exception {
        List<Dictionaries> kind;
        try {
            kind  = dictionariesMapper.kind(state);
        } catch (Exception e) {
            throw new Exception("获取排序分类失败");
        }
        return kind;
    }


}
